import { IsInt, IsOptional, IsString } from 'class-validator';

// 定义查询dto
export class QueryInfo {
  @IsOptional()
  @IsString()
  username: string;

  @IsOptional()
  @IsString()
  nickname: string;

  @IsOptional()
  @IsInt()
  currentPage: number = 1;

  @IsOptional()
  @IsInt()
  pageSize: number = 10;
}
